home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 3.8 KB | 176 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _SUVIEW_
- #define _SUVIEW_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl"
- #endif
-
- #ifndef _STORAGEU_
- #include "StorageU.idl"
- #endif
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODStorageUnitView;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODStorageUnitCursor;
-
- //==============================================================================
- // ODStorageUnitView
- //==============================================================================
-
- interface ODStorageUnitView : ODObject
- {
-
- void InitStorageUnitView(in ODStorageUnit storageUnit,
- in ODStorageUnitCursor cursor);
-
- ODStorageUnit GetStorageUnit();
-
- ODStorageUnitCursor GetCursor();
-
- ODStorageUnitView Externalize();
-
- ODStorageUnitView Internalize();
-
- ODID GetID();
-
- ODStorageUnitName GetName();
-
- void SetName(in ODStorageUnitName name);
-
- ODStorageUnitView AddProperty(in ODPropertyName propertyName);
-
- ODStorageUnitView AddValue(in ODValueType type);
-
- ODStorageUnitView Remove();
-
- void CopyTo(in ODStorageUnit toSU);
-
- ODStorageUnit CloneTo(in ODDraftKey key,
- in ODDraft destDraft,
- in ODStorageUnit initiatingFrameSU);
-
- void CloneInto(in ODDraftKey key,
- in ODStorageUnit destStorageUnit,
- in ODStorageUnit initiatingFrameSU);
-
- ODPropertyName GetProperty();
-
- ODValueType GetType();
-
- void SetType(in ODValueType valueType);
-
- void SetOffset(in ODULong offset);
-
- ODULong GetOffset();
-
- ODULong GetValue(in ODULong length,
- in ODValue value);
-
- void SetValue(in ODULong length,
- in ODValue value);
-
- void InsertValue(in ODULong length,
- in ODValue value);
-
- void DeleteValue(in ODULong length);
-
- ODULong GetSize();
-
- ODStorageUnitRef GetStrongStorageUnitRef(in ODStorageUnit embeddedSU);
-
- ODStorageUnitRef GetWeakStorageUnitRef(in ODStorageUnit embeddedSU);
-
- ODBoolean IsStrongStorageUnitRef(in ODStorageUnitRef ref);
-
- ODBoolean IsWeakStorageUnitRef(in ODStorageUnitRef ref);
-
- ODStorageUnitView RemoveStorageUnitRef(in ODStorageUnitRef aRef);
-
- ODStorageUnitID GetIDFromStorageUnitRef(in ODStorageUnitRef aRef);
-
- ODStorageUnitRefIterator GetStorageUnitRefIterator();
-
- ODULong GetGenerationNumber();
-
- ODULong IncrementGenerationNumber();
-
- ODBoolean IsPromiseValue();
-
- void SetPromiseValue(in ODValueType valueType,
- in ODULong offset,
- in ODULong length,
- in ODValue value,
- in ODPart sourcePart);
-
- ODULong GetPromiseValue(in ODValueType valueType,
- in ODULong offset,
- in ODULong length,
- in ODValue value,
- in ODPart sourcePart);
-
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit,
- Purge;
- releaseorder:
- InitStorageUnitView,
- GetStorageUnit,
- GetCursor,
- Externalize,
- Internalize,
- GetID,
- GetName,
- SetName,
- AddProperty,
- AddValue,
- Remove,
- CopyTo,
- CloneTo,
- CloneInto,
- GetProperty,
- GetType,
- SetType,
- SetOffset,
- GetOffset,
- GetValue,
- SetValue,
- InsertValue,
- DeleteValue,
- GetSize,
- GetStrongStorageUnitRef,
- GetWeakStorageUnitRef,
- IsStrongStorageUnitRef,
- IsWeakStorageUnitRef,
- RemoveStorageUnitRef,
- GetIDFromStorageUnitRef,
- GetStorageUnitRefIterator,
- GetGenerationNumber,
- IncrementGenerationNumber,
- IsPromiseValue,
- SetPromiseValue,
- GetPromiseValue,
- Lock,
- Unlock;
-
-
- };
-
- #endif
- };
-
- #endif // _SUVIEW_
-
-